cmake_minimum_required( VERSION 2.8 )
project(track_algorithm)

# 添加c++ 14标准支持
set( CMAKE_CXX_FLAGS "-std=c++14" )

# 寻找OpenCV库
find_package( OpenCV 3 REQUIRED )

find_package(Eigen3)

# 添加头文件
include_directories( 	${OpenCV_INCLUDE_DIRS}
						${EIGEN3_INCLUDE_DIR})


#vins_mono test
add_executable(vins_mono  ./vins_mono/vins_mono_track.cpp )
# 链接OpenCV库
target_link_libraries( vins_mono  ${OpenCV_LIBS} )

#orb_slam test
add_executable(orb_slam ./orb_slam/orb_slam_track.cpp
						./orb_slam/ORBextractor.cc)
target_link_libraries( orb_slam  ${OpenCV_LIBS})

#sift_slam test
add_executable(sift_slam ./sift_slam/sift_slam_track.cpp)
target_link_libraries(sift_slam ${OpenCV_LIBS})

#opticalFlow test
add_executable(opticalFlow ./opticalFlow/optical_flow_test.cpp
							./opticalFlow/optical_flow.cpp)
target_link_libraries(opticalFlow ${OpenCV_LIBS})
